define(function (require, exports, module) {


  require('andrew/card/index.js')

  var _ = require('third/lodash.js')

  var app = new Vue({
    data() {
      return {
        activeIndex: '1',
        menuTree: [{
          index: '1',
          name: '文章列表',
          url: './04_artList.html'
        }, {
          index: '2',
          name: '文章分类',
          url: './02_categoryList.html'
        },
        {
          index: '3',
          name: '前台配置类型',
          url: './05_treeTable.html'
        },
        {
          index: '4',
          name: '前台配置',
          url: './02_pageConfigList.html'
        },
        {
          index: '5',
          name: '图片管理',
          url: 'http://www.reformer.com'
        }],
        activeUrl: './04_artList.html'
      }
    },
    // mixins: [Element.mixin],
    methods: {
      handleSelect(key, keyPath) {
        console.log(keyPath)

        var pageVue = this
        var curMenuItem = _.find(pageVue.menuTree, { 'index': key })
        console.log(curMenuItem)
        pageVue.activeUrl = curMenuItem.url
        window.location.hash = curMenuItem.url.substring(curMenuItem.url.indexOf("/"), curMenuItem.url.length)
      }
    }
  }).$mount('#app')
})
